package com.example.administrator.xiaoxiang.widget;

import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.View;

/**
 * Created by Administrator on 2017/1/6.
 */

public class BaseHomeViewPager extends ViewPager {
    public BaseHomeViewPager(Context context) {
        this(context,null);
    }

    public BaseHomeViewPager(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    //是否允许子空间滚动
    @Override
    protected boolean canScroll(View v, boolean checkV, int dx, int x, int y) {

        return true;
    }
}
